package org.zcl.feign;

import org.springframework.stereotype.Component;
import org.zcl.entity.User;

/**
 * @author: ZCL
 * @since: 2021/10/15 14:09
 */
@Component
public class HystrixClientFallback implements UserFeignClient {

    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(0L);
        return user;
    }
}
